package com.navi.loaddata.core.oracleEntity.cf;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by ghost on 2018/3/15.
 */
@Entity
@Table(name = "ETL_ARRAY_GLASS_HST_V", schema = "EDALDR", catalog = "")
public class EtlCfGlassHstVPK implements Serializable {
    private String stepId;
    private String glassId;
    private Date glassEndTime;
    private String mesLinkKry;



    @Column(name = "STEP_ID")
    @Id
    public String getStepId() {
        return stepId;
    }

    public void setStepId(String stepId) {
        this.stepId = stepId;
    }


    @Column(name = "GLASS_ID")
    @Id
    public String getGlassId() {
        return glassId;
    }

    public void setGlassId(String glassId) {
        this.glassId = glassId;
    }


    @Column(name = "GLASS_END_TIME")
    @Id
    @Temporal(TemporalType.TIMESTAMP)
    public Date getGlassEndTime() {
        return glassEndTime;
    }

    public void setGlassEndTime(Date glassEndTime) {
        this.glassEndTime = glassEndTime;
    }




    @Column(name = "MES_LINK_KRY")
    @Id
    public String getMesLinkKry() {
        return mesLinkKry;
    }

    public void setMesLinkKry(String mesLinkKry) {
        this.mesLinkKry = mesLinkKry;
    }



    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        EtlCfGlassHstVPK that = (EtlCfGlassHstVPK) o;

        if (stepId != null ? !stepId.equals(that.stepId) : that.stepId != null) return false;
        if (glassId != null ? !glassId.equals(that.glassId) : that.glassId != null) return false;
        if (glassEndTime != null ? !glassEndTime.equals(that.glassEndTime) : that.glassEndTime != null) return false;

        if (mesLinkKry != null ? !mesLinkKry.equals(that.mesLinkKry) : that.mesLinkKry != null) return false;


        return true;
    }

    @Override
    public int hashCode() {
        int result = stepId != null ? stepId.hashCode() : 0;
        result = 31 * result + (glassId != null ? glassId.hashCode() : 0);
        result = 31 * result + (glassEndTime != null ? glassEndTime.hashCode() : 0);

        result = 31 * result + (mesLinkKry != null ? mesLinkKry.hashCode() : 0);

        return result;
    }
}
